
//
//  NewsTableViewCell.m
//  DailyNews
//
//  Created by 于跃隆 on 2018/12/21.
//  Copyright © 2018年 于跃隆. All rights reserved.
//

#import "NewsTableViewCell.h"

@implementation NewsTableViewCell

-(void)setValueForCellModel:(HttpHandle *)http{
    if (http) {
        self.touimage.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:http.thumbnail_pic_s]]];
        self.cateLabel.text = [NSString stringWithFormat:@"%@ %@",http.category,http.author_name];
        self.titleLabel.text = http.title;
        self.timeLabel.text = http.date;
        
    }
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
